package com.aaa.controller;


import com.aaa.service.impl.PlayServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Bean
 * @since 2021-09-07
 */
@RestController
@Api(tags = "播放量")
@CrossOrigin
@RequestMapping("/play")
public class PlayController {
    @Autowired
    PlayServiceImpl playService;

    //增加播放量
    @ApiOperation("增加播放量")
    @RequestMapping(value = "add",method = RequestMethod.POST)
    public boolean add(@ApiParam("用户id") Integer uid,@ApiParam("作品的主键") Integer vid){
        return playService.add(uid,vid);
    }

}
